package com.retallife.business.service.Impl;

import com.retallife.business.dao.Business.BussinessMapper;
import com.retallife.business.pojo.Business.BusinessVo;
import com.retallife.business.pojo.Login.LoginVo;
import com.retallife.business.service.BussinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BussinessServiceImpl implements BussinessService {

    @Autowired
    BussinessMapper bussinessMapper;

    /**
     * 查询所有用户
     * @return 是否查询成功
     */
    public List<BusinessVo> FindAllBusiness() {
        return bussinessMapper.FindAllBusiness();
    }

    /**
     * 查询某个厂商的账号密码
     * @return 是否查询成功
     */
    public int FindBusiness(LoginVo loginVo) {
        return bussinessMapper.FindBusiness(loginVo);
    }

    /**
     * 查询某个厂商的信息
     * @return 是否查询成功
     */
    public List<BusinessVo> FindBusinessName(String businessName) {
        return bussinessMapper.FindBusinessName(businessName);
    }

}
